package com.tz.crm.entity.dto;

import com.tz.crm.entity.enumeration.Gender;
import org.hibernate.validator.constraints.NotBlank;

/**
 * Created by wangchunyang on 2017/3/7.
 * 用户信息封装
 */
public class User {

    String empNo;
    String realName;
    String username;
    boolean valid;
    String deptId;
    int maxCustomer;
    Gender gender;
    String birthDate;
    String roleIds;
    String roleNames;
    @NotBlank(message = "电话不能为空")
    String telephone;
    @NotBlank(message = "备注不能为空")
    String remarks;

    public User() {

    }

    public String getEmpNo() {
        return empNo;
    }

    public void setEmpNo(String empNo) {
        this.empNo = empNo;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public boolean isValid() {
        return valid;
    }

    public void setValid(boolean valid) {
        this.valid = valid;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public int getMaxCustomer() {
        return maxCustomer;
    }

    public void setMaxCustomer(int maxCustomer) {
        this.maxCustomer = maxCustomer;
    }

    public Gender getGender() {
        return gender;
    }

    public void setGender(Gender gender) {
        this.gender = gender;
    }

    public String getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(String birthDate) {
        this.birthDate = birthDate;
    }

    public String getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(String roleIds) {
        this.roleIds = roleIds;
    }

//    public Set<Role> getRoleSet() {
//        return roleSet;
//    }
//
//    public void setRoleSet(Set<Role> roleSet) {
//        this.roleSet = roleSet;
//    }

    public String getRoleNames() {
        return roleNames;
    }

    public void setRoleNames(String roleNames) {
        this.roleNames = roleNames;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    public String toString() {
        return "User{" +
                "empNo='" + empNo + '\'' +
                ", realName='" + realName + '\'' +
                ", username='" + username + '\'' +
                ", valid=" + valid +
                ", deptId='" + deptId + '\'' +
                ", maxCustomer='" + maxCustomer + '\'' +
                ", gender=" + gender +
                ", birthDate='" + birthDate + '\'' +
                ", roleIds='" + roleIds + '\'' +
//                ", roleSet='" + roleSet + '\'' +
                ", roleNames='" + roleNames + '\'' +
                ", telephone='" + telephone + '\'' +
                ", remarks='" + remarks + '\'' +
                '}';
    }
}
